package com.isight.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
@RequestMapping("/blog")
public class BlogController {
    
    @RequestMapping(method = RequestMethod.GET)
    public String loadPostList(Model model) {
        return "postList";
    }
    
    @RequestMapping(value = "/new", method = RequestMethod.GET)
    public String loadPostPublishingPage() {
        return "postCreation";
    }
    
    @RequestMapping(value = "/new", method = RequestMethod.POST)
    public String handlePostPublishingForm() {
        return "";
    }
    
    @RequestMapping(value = "{id}", method = RequestMethod.GET)
    public String loadPost() {
        return "post";
    }
}
